package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.ProfessionalTitle;

public interface ProfessionalTitleDAO extends CrudRepository<ProfessionalTitle, Long>{
	@Query("from ProfessionalTitle p")
	public List<ProfessionalTitle> queryByPage(Pageable p);

	
	@Query("from ProfessionalTitle f where f.zcName like?1")
	public List<ProfessionalTitle> query_By_idorname(String text,Pageable p);

	@Query("select count(f) from ProfessionalTitle f where f.zcName like?1")
	public long count(String string);

}
